package com.ruoyi.quartz.task;

import com.ruoyi.relationOrder.service.IDistributionOrderRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 分销订单结算定时任务
 */
@Component("distributionSettlementTask")
public class DistributionSettlementTask {

    @Autowired
    private IDistributionOrderRelationService distributionOrderRelationService;

    /**
     * 执行分销订单结算任务
     */
    public void execute() {
        distributionOrderRelationService.processSettlementOrders();
    }
}
